<?php 
$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$model->search(),
    'id'=>'packing_list_tab',
    'columns'=>array(
       	'date:date:Packing date',
        'ref:text:No.',
       	'handlingAgent.cname:text:Handling agent',
       	'notifyParty.cname:text:Consignee',
	'pol:text:Port of loading',
        'pod:text:Port of discharge',
        array(
            'class'=>'CLinkColumn',
            'label'=>'Add',
            'urlExpression'=>'CHtml::normalizeUrl(array("packing_list/addcargo","id"=>$data->id))',
            'linkHtmlOptions'=>array('id'=>'add_cargo'),
        )
    ),
));
?>
